import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { Subject } from 'rxjs/Subject';
@Component({
    selector: 'panels-box',
    templateUrl: './panels.component.html',
    styleUrls: ['./panels.component.css']
})

export class PanelsComponent {
    public currentTime: Date = new Date();
    public searchText: string;

    constructor() {
        window.setInterval(
            () => this.currentTime = new Date()
            , 1000);
    }

    ngOnInit() {

    }

    public searchChanged($event): void {
        console.log(this.searchText);
    }
    doFollow() {
        alert("panels");
    }
}